<gn-buttons>
  <button pButton type="button" label="新建" icon="pi pi-plus" class="ui-button-raised"
          gnDialog [content]="typeEdit" header="组织机构信息" (onClose)="table.reloadData()"></button>
  <button pButton type="button" label="删除" [disabled]="!table.hasSelected" class="ui-button-raised ui-button-danger"
          icon="pi pi-minus" (click)="table.delete()"></button>
</gn-buttons>
<p-table gnTable dataKey="id" url="/RESOURCES-SERVICE/organization" sortField="name"
         [showSearchButton]="false">
  <ng-template pTemplate="header">
    <tr>
      <th class="table-width-8">名称</th>
      <th class="table-width-8">类型</th>
    </tr>
  </ng-template>
  <ng-template pTemplate="body" let-rowData>
    <tr [pSelectableRow]="rowData">
      <td>{{rowData.id}}</td>
      <td>{{rowData.name}}</td>
      <td></td>
    </tr>
  </ng-template>
</p-table>

